<?php

namespace App\Http\Controllers\Backend;


use App\Models\SiteVersion;
use App\Models\SiteCate;
use Illuminate\Support\Facades\Config;

class SiteVersionController extends BaseController
{
    // 广告
    public function initialize()
    {
        parent::initialize();

        $this->model = 'SiteVersion';
    }

    // 父级
    // 添加，修改，删除，列表，停用 操作


    // 返回列表数据
    public function lists()
    {
        $where = [];
        $page  = $this->page;
        $rows  = $this->rows;
        $model = $this->checkModel($this->model);
        if($model === false){
            return $this->error($this->error);
        }

        // 模型 和 查询
        $result = $model->listPageCache($where, $where, $page, $rows, "id DESC");


        return $this->success($result);
    }

}


